package com.wxmit.framework.excel.annotation;


import com.wxmit.base.enums.YesOrNoEnum;
import com.wxmit.framework.excel.handler.DefExcelCellSelectFieldHandler;
import com.wxmit.framework.excel.handler.ExcelCellSelectFieldHandler;

import java.lang.annotation.*;

/**
 *  用于excel 导出时 设置单元下拉数据
 * @author huangxiong
 * @date 20230105
 */
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Target(ElementType.FIELD)
public @interface ExcelCellSelect {
    /**
     *  直接录入下拉框数值
     */
    String[] value() default {};

    /**
     *  Enum
     */
    Class<? extends Enum<?>> enumClass() default YesOrNoEnum.class;
    /**
     *  Enum field
     */
    String enumField() default "name";

    Class<? extends ExcelCellSelectFieldHandler> handler() default DefExcelCellSelectFieldHandler.class;
}
